package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;


public class otherActivity extends MainActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_2);

        TextView contentTv = findViewById(R.id.text);
        Intent intent = getIntent();
        String testIntent = intent.getStringExtra("edit1");
        String testIntent2 = intent.getStringExtra("edit2");
        int edit1int = Integer.parseInt(testIntent);
        int edit2int = Integer.parseInt(testIntent2);
        int result =edit1int*edit2int;
        contentTv.setText(result + "");
    }
}
